/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
var Details = function() {
    return {
        init: function() {
            //初始化滑动条
            Details.sildePreview();
        },
        sildePreview: function() {
            $(".preview-small").click(function() {                  //选中小图标按钮 添加点击事件
                var imgageUrl = $(this).children("img").attr('src');//提取当前按钮的图片地址
                $("#preview-big").children("img")                   //选中大图
                        .attr(
                                "src", imgageUrl                    //替换图片地址
                                );
            });
        }
    };
}();

